<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ajax实现登录功能</title>
    <script type="text/javascript" src="/js/login.js"></script>
</head>
<body>
    <form>

        用户名:<input type="text" id="username"><br>

        密码:<input type="password" id="password"><br>

        <input type="button" value="登录" onclick="login()">

    </form>
</body>
</html>